/*jslint node:true*/
/*global angular,alert*/
'use strict';
var app = angular.module('myApp', []);
app.controller('myCtrl', function ($scope) {
    $scope.msg = "";
    $scope.save = function () {
        alert("保存成功");
    };
    $scope.clear = function () {
        $scope.msg = "";
    };
    $scope.left = function () {
        return 100 - $scope.msg.length;
    };
});
